package com.wnzt.baszh.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.wnzt.baszh.dao.IMedicalCheckDao;
import com.wnzt.baszh.entity.SzhCxmbtjmx;
import com.wnzt.baszh.service.IMedicalCheckService;
import com.wnzt.baszh.util.common.PageHelper;

/**
 * 病案管理查询service实现类
 */
@Repository
public class MedicalCheckServiceImpl implements IMedicalCheckService {

    @Autowired
    private IMedicalCheckDao iMedicalCheckDao;
    
    @Override
    public Object loadDoctorByDocType(String code) {
        return iMedicalCheckDao.loadDoctorByDocType(code);
    }

    @Override
    public Object editConditionTempName(String name, String mbID) {
        return iMedicalCheckDao.editConditionTempName(name, mbID);
    }

    @Override
    public Object addConditionTemp(Map<String, Object> map) {
        return iMedicalCheckDao.addConditionTemp(map);
    }

    @Override
    public Object editConditionTemp(Map<String, Object> map) {
        return iMedicalCheckDao.editConditionTemp(map);
    }

    @Override
    public Object deleteConditionTemp(String mbID) {
        return iMedicalCheckDao.deleteConditionTemp(mbID);
    }

    @Override
    public Object loadConditionTemple(String fcode,String ftype) {
        return iMedicalCheckDao.loadConditionTemple(fcode,ftype);
    }

    @Override
    public Object loadConditionByTemple(String mbID) {
        return iMedicalCheckDao.loadConditionByTemple(mbID);
    }

    @Override
    public Object loadFieldsByTempId(String mbID) {
        return iMedicalCheckDao.loadFieldsByTempId(mbID);
    }

    @Override
    public List<Map<String, Object>> SubmitConditionCheck(Map<String, Object> map) throws Exception {
        return iMedicalCheckDao.SubmitConditionCheck(map);
    }

    @Override
    public Object confirmSApply(Map<String, Object> map) {
        return iMedicalCheckDao.confirmSApply(map);
    }

    @Override
	public List<Map<String, Object>> getQuerySelfCondition()
			throws Exception {
		return iMedicalCheckDao.getQuerySelfCondition();
	}

	@Override
	public void addTemplate(String fmbmc, String fcode, int ftype)
			throws Exception {
		iMedicalCheckDao.addTemplate(fmbmc, fcode, ftype);
		
	}

	@Override
	public List<Map<String, Object>> queryConditionGroup(String mbid) {
		return iMedicalCheckDao.queryConditionGroup(mbid);
	}

	@Override
	public void addConditionGroup(String mbid, String pid,
			String tjzmc, String px) throws Exception {
		iMedicalCheckDao.addConditionGroup(mbid, pid, tjzmc, px);
	}

	@Override
	public void updateConditionGroup(String id, String tjzmc, String px,String pid,String gx)
			throws Exception {
		iMedicalCheckDao.updateConditionGroup(id, tjzmc, px, pid,gx);
	}

	@Override
	public void deleteConditionGroup(String id) throws Exception {
		iMedicalCheckDao.deleteConditionGroup(id);
	}

	@Override
	public List<SzhCxmbtjmx> queryCondition(String zid) {
		return iMedicalCheckDao.queryCondition(zid);
	}

	@Override
	public SzhCxmbtjmx getConditionByCode(String zid,
			String fieldcode) {
		return iMedicalCheckDao.getConditionByCode(zid, fieldcode);
	}

	@Override
	public void addCondition(SzhCxmbtjmx mx)
			throws Exception {
		iMedicalCheckDao.addCondition(mx);
	}

	@Override
	public void updateCondition(SzhCxmbtjmx mx)
			throws Exception {
		iMedicalCheckDao.updateCondition(mx);
	}

	@Override
	public void deleteCondition(String id) throws Exception {
		iMedicalCheckDao.deleteCondition(id);
	}

	@Override
	public Map<String,Object> getTemplateByID(String mbid) throws Exception {
		return iMedicalCheckDao.getTemplateByID(mbid);
	}

    @Override
    public Object confirmBApply(Map<String, Object> map) {
        return iMedicalCheckDao.confirmBApply(map);
    }

    @Override
    public PageHelper checkPurposeDataByUser(Map<String, Object> map) {
        return iMedicalCheckDao.checkPurposeDataByUser(map);
    }

    @Override
    public Object checkNextExaminationPerson(Map<String, Object> map) {
        return iMedicalCheckDao.checkNextExaminationPerson(map);
    }

    @Override
    public Object submitsApprovalMedicol(Map<String, Object> map) {
        return iMedicalCheckDao.submitsApprovalMedicol(map);
    }

    @Override
    public Object submitsNotApprovalMedicol(Map<String, Object> map) {
        return iMedicalCheckDao.submitsNotApprovalMedicol(map);
    }

    @Override
    public PageHelper checkPurposeDataBatch(Map<String, Object> map) {
        return iMedicalCheckDao.checkPurposeDataBatch(map);
    }

    @Override
    public Object submitbApprovalMedicol(Map<String, Object> map) {
        return iMedicalCheckDao.submitbApprovalMedicol(map);
    }

    @Override
    public Object submitbNotApprovalMedicol(Map<String, Object> map) {
        return iMedicalCheckDao.submitbNotApprovalMedicol(map);
    }

    @Override
    public Object checkUserHaveJuris(Map<String, Object> map) {
        return iMedicalCheckDao.checkUserHaveJuris(map);
    }

	@Override
	public Map<String, Object> medicalAdvancedInquiryBatchBrowseApplyQuery(
			Map<String, Object> map) throws Exception {
		return iMedicalCheckDao.medicalAdvancedInquiryBatchBrowseApplyQuery(map);
	}

    @Override
    public List<Map<String, Object>> getListOptions(Map<String, Object> maps) {
        return iMedicalCheckDao.getListOptions(maps);
    }

    @Override
    public Object confirmSApplyImg(Map<String, Object> map) {
        return iMedicalCheckDao.confirmSApplyImg(map);
    }

    @Override
    public Object loadFieldsByTempFilterId(String mbID) {
        return iMedicalCheckDao.loadFieldsByTempFilterId(mbID);
    } 
 
	@Override
	public PageHelper queryAllErrossb(Map<String, Object> map) {
		PageHelper page = iMedicalCheckDao.queryAllErrossb(map);
		return page;
	} 
	
	 @Override
     public Object submitFstate(Map<String, Object> map) {
        return iMedicalCheckDao.submitFstate(map);
    }
	 
	@Override
	public PageHelper SumMedicalStatistical(Map<String, Object> map){
		PageHelper page = iMedicalCheckDao.SumMedicalStatistical(map);
		return page;
	}
	 
	@Override
	public PageHelper MbrowseInfo(Map<String, Object> map){
		PageHelper page = iMedicalCheckDao.MbrowseInfo(map);
		return page;
	}

	 
}
